﻿using System.Runtime.InteropServices;
using Volo.Abp.DependencyInjection;

namespace Puppy.Scheduler.Processors
{
    public class ShellProcessor : ScriptProcessorBase, ITransientDependency
    {
        protected override string GetRunCommand()
        {
            if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
            {
                return "cmd.exe";
            }
            else
            {
                return "/bin/sh";
            }
        }
    }
}
